/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aicue1.beans;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Thomas
 */

@XmlRootElement(name = "Address")
public class Address {

    private String id;
    private String street;
    private String city;
    private int house;
    private int door;
    private String zip_code;

    public Address()
    {
    }

    public Address(String id, String street, String city, int house, int door, String zip_code) {
        this.id = id;
        this.street = street;
        this.city = city;
        this.house = house;
        this.door = door;
        this.zip_code = zip_code;
    }

    @XmlElement
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @XmlElement
    public int getDoor() {
        return door;
    }

    public void setDoor(int door) {
        this.door = door;
    }

    @XmlElement
    public int getHouse() {
        return house;
    }

    public void setHouse(int house) {
        this.house = house;
    }

    @XmlAttribute
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @XmlElement
    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    @XmlElement
    public String getZip_code() {
        return zip_code;
    }

    public void setZip_code(String zip_code) {
        this.zip_code = zip_code;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Address other = (Address) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }


    
}
